Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 7 - View-Related Objects / View-Related Objects Reference
Constants and Data Types


Tint Types

The gxTintTypes enumeration defines the possible ways of calculating the tint color (the color to be represented by a ratio of dot and background color) for a halftone.

enum gxTintTypes{
   gxNoTint,      
   gxLuminanceTint,  
   gxAverageTint, 
   gxMixtureTint,    
   gxComponent1Tint,
   gxComponent2Tint,
   gxComponent3Tint,
   gxComponent4Tint
};

typedef long gxTintType;
Constant descriptions

gxNoTint
No tint color. In a halftone structure with all fields set to 0, the tinting field has a value of gxNoTint.
gxLuminanceTint
The tint color is the input color's luminance.
gxAverageTint
The tint color is the average of all components of the input color.
gxMixtureTint
Project the input color onto the foreground-background color axis in tint color space. That projection point is the tint color.
gxComponent1Tint
Use only component 1 of the input color as the tint color.
gxComponent2Tint
Use only component 2 of the input color as the tint color.
gxComponent3Tint
Use only component 3 of the input color as the tint color.
gxComponent4Tint
Use only component 4 of the input color as the tint color.
For more information about halftone tints, see the section "Halftone" beginning on page 7-13.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996